
package org.apache.solr.highlight;

import org.apache.lucene.search.highlight.Encoder;
import org.apache.lucene.search.highlight.SimpleHTMLEncoder;
import org.apache.solr.common.params.SolrParams;

/**
 * Use the {@link org.apache.lucene.search.highlight.SimpleHTMLEncoder}
 */
public class HtmlEncoder extends HighlightingPluginBase implements SolrEncoder {

    @Override
    public Encoder getEncoder(String fieldName, SolrParams params) {
        return new SimpleHTMLEncoder();
    }

    // SolrInfoMBeans methods
    @Override
    public String getDescription() {
        return "HtmlEncoder";
    }

    @Override
    public String getSource() {
        return "$URL: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_4_0/solr/core/src/java/org/apache/solr/highlight/HtmlEncoder.java $";
    }
}
